<?php /* items per page, search, pagination */ ?>
<div class="row">
   <div class="span3">
      <div class="btn-group items-per-page">
         <a href="#" class="btn dropdown-toggle"  data-toggle="dropdown">
            <i class="icon-list"></i> Items per page
            <span class="caret"></span>
         </a>
         <ul class="dropdown-menu">
            <li>
               <a href="<?= $this->url(array('count' => 5)) ?>">
                  5</a>
            </li>
            <li>
               <a href="<?= $this->url(array('count' => 10)) ?>">
                  10</a>
            </li>
            <li>
               <a href="<?= $this->url(array('count' => 15)) ?>">
                  15</a>
            </li>
            <li>
               <a href="<?= $this->url(array('count' => 25)) ?>">
                  25</a>
            </li>
         </ul>
      </div>
      <div class="btn-group items-per-page">
         <a href="#" class="btn dropdown-toggle" data-toggle="dropdown">
            <i class="icon-filter"></i> Status
            <span class="caret"></span>
         </a>
         <ul class="dropdown-menu">
            <li <?php if (empty($this->only_status)): ?>class="active"<?php endif; ?>>
               <a href="<?= $this->url(array('status' => 'all')) ?>">All</a>
            </li>
            <?php foreach ($this->status_list as $item): ?>
            <li <?php if ($this->only_status == $item->id): ?>class="active"<?php endif; ?>>
               <a href="<?= $this->url(array('status' => $item->id)) ?>">
                  <?= $item->description ?>
               </a>
            </li>
            <?php endforeach; ?>
         </ul>
      </div>
   </div>
   <div class="span3">
      <form class="form-search" method="post">
        <input type="text" name="term" id="term" class="input-large search-query"
               value="<?=$this->term ?>" placeholder="Search..."/>
      </form>
   </div>
   <div class="span6">
      <?php echo $this->paginator; ?>
   </div>
</div>
